package com.orange.wwwapi.controller.shopCategory;

import com.orange.core.pojo.R;
import com.orange.core.pojo.entity.shopCategory.vo.ShopCategoryVO;
import com.orange.core.service.shopCategory.ShopCategoryService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>ClassName:ShopCategoryController</p>
 * <p>Description: 品牌商铺分类controller</p>
 * <p>Author: lwm</p>
 * <p>Date: 2025/5/24 15:38</p>
 */
@RequiredArgsConstructor
@RestController
@RequestMapping("/shopCategory")
public class ShopCategoryController {

    private final ShopCategoryService shopCategoryService;


    /**
     * 品牌商铺分类列表查询
     * @return
     */
    @GetMapping("/list")
    public R<List<ShopCategoryVO>> list(){
        return R.ok(shopCategoryService.shopCategoryList());
    }


}
